Routines (alphabetical) > Routines: H > HDF-EOS Routines > EOS_GD_SETTILECACHE

EOS_GD_SETTILECACHE

This function sets tile cache parameters.

Syntax

Result = EOS_GD_SETTILECACHE(gridID, fieldname, maxcache, cachecode)

Return Value

Returns SUCCEED(0) if successful and FAIL(–1) otherwise.

Arguments

gridID

Grid id (long) returned by EOS_GD_CREATE or EOS_GD_ATTACH.

fieldname

Fieldname (string).

maxcache

Maximum number of tiles (long) to cache in memory.

cachecode

Currently must be set to 0 (long).

Keywords

None

Examples

In this example, we set maxcache to 10 tiles. The particular subsetting envisioned for the Spectra field (defined in the EOS_GD_DEFTILE example) would never cross more than 10 tiles along the field’s fastest varying dimension, i.e., XDim.

status = EOS_GD_SETTILECACHE(gridID, "Spectra", 10, 0)

Version History

 

5.2

Introduced